package com.gzy.cbrsystem.shimian.action;

import com.gzy.cbrsystem.shimian.dao.ShimianBingzhen;
import com.gzy.cbrsystem.shimian.service.CaseReasoning;

import com.opensymphony.xwork2.ActionSupport;

public class AddShimianBingZhenAction extends ActionSupport{
	protected CaseReasoning caseReasoning;
	protected ShimianBingzhen shimianBingzhen;

	public CaseReasoning getCaseReasoning() {
		return caseReasoning;
	}

	public void setCaseReasoning(CaseReasoning caseReasoning) {
		this.caseReasoning = caseReasoning;
	}

	public ShimianBingzhen getShimianBingzhen() {
		return shimianBingzhen;
	}

	public void setShimianBingzhen(ShimianBingzhen shimianBingzhen) {
		this.shimianBingzhen = shimianBingzhen;
	}

	public String execute() throws Exception {
		if (this.getCaseReasoning().AddShimianBingZhen(
				this.getShimianBingzhen())) {
			return SUCCESS;
		} else {
			return null;
		}

	}
}